<%--
  Created by IntelliJ IDEA.
  User: kittychen
  Date: 2025-11-18
  Time: 15:01
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>JSTL标签库</title>
</head>
<body>
    <%
        request.setAttribute("name", "kittychen");
    %>
    <c:out value="Hello World" />
    <c:out value="${name}" />
    ${name}<br>
    <c:out value="<a href='https://www.baidu.com/'>百度一下</a>" /> <br>
    <c:out value="<a href='https://www.baidu.com/'>百度一下</a>" escapeXml="false" />
    <c:out value="${name1}" default="2310" /> <br>
    <c:out value="${name}" default="2310" />

<c:set var="name" value="kittychen"/>  <%-- 默认保存到哪个域范围 --%>
</body>
</html>
